package com.member.shop.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.member.common.annotation.Excel;
import com.member.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 素材对象 sys_biz_material
 *
 * @author lixinchen
 * @date 2024-05-08
 */
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_biz_material")
public class SysBizMaterial extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;

    /**
     * 素材库分类id
     */
    @Excel(name = "素材库分类id")
    private Long categoryId;

    /**
     * 图片
     */
    @Excel(name = "图片")
    private String image;

    /**
     * 内容
     */
    @Excel(name = "内容")
    private String content;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Long sort;

    /**
     * 是否上架（0上架 1下架）
     */
    @Excel(name = "是否上架", readConverterExp = "0=上架,1=下架")
    private Integer status;

    /**
     * 素材分类名称
     */
    @TableField(exist = false)
    private String materialCategoryName;
}
